package com.utils.page;

/**
 * 创建作者 ：MySunshine
 * 创建时间 2022/10/27 10:33
 * 项目名称 SHUSHAN
 */
public class Page {
    private  int pageNum; //当前页
    private  int pageSize=3; //每页条数
    private  int totalCounts;//总条数
    private  int totalPages;//总页数

    private  String  name;

    public Page() {
    }

    public Page(int pageNum, int pageSize, int totalCounts, int totalPages) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.totalCounts = totalCounts;
        this.totalPages = totalPages;
    }
    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotalCounts() {
        return totalCounts;
    }

    public void setTotalCounts(int totalCounts) {
        this.totalCounts = totalCounts;
    }

    public int getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    @Override
    public String toString() {
        return "Page{" +
                "pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                ", totalCounts=" + totalCounts +
                ", totalPages=" + totalPages +
                ", name='" + name + '\'' +
                '}';
    }
}
